<?php

$db['server'] = 'localhost';
$db['user'] = 'root';
$db['password'] = '';
$db['name'] = 'theme_editor';

$conn = mysql_connect($db['server'],$db['user'],$db['password']);
if(!$conn) die('Could not connect: ' . mysql_error());
mysql_select_db($db['name'], $conn);

session_start();
$loggedIn = false;

if(isset($_SESSION['username'])){
	$loggedIn = true;
	$username = $_SESSION['username'];
	$results = mysql_query("SELECT * FROM te_theme WHERE theme_user='$username'");
	$themeRow = mysql_fetch_assoc($results);
	$themeId = $themeRow['theme_id'];
}


?>